//
//  NetWorking.h
//  jiajiao
//
//  Created by apple on 16/3/11.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface NetWorking : NSObject
//第一次post请求
+(void)Post:(NSString *)url
     params:(NSDictionary *)dic
    success:(void(^)(NSDictionary * response))success
    failuer:(void(^)(NSError *errog))failure;
//验证银行卡类型
+(void)checkCardPost:(NSString *)url
           params:(NSDictionary *)dic
          success:(void(^)(NSDictionary * response,NSString *msg ,NSString *succe))success
          failuer:(void(^)(NSError *errog))failure;

//正常的请求
+(void)NormalPost:(NSString *)url
     params:(NSDictionary *)dic
    success:(void(^)(NSDictionary * response,NSString *msg ,NSString *succe))success
    failuer:(void(^)(NSError *errog))failure;

//get请求
+(void)NoramlGet:(NSString *)url params:(NSDictionary *)dic success:(void (^)(NSDictionary *respose,NSString *msg ,NSString *succe))success failuer:(void (^)( NSError *))failuer;
//图片的请求
+(void)NormalUpdata:(NSString *)url
             params:(NSDictionary *)dic
              image:(UIImage *)image
            success:(void(^)(NSURLSessionDataTask *task,id responseObject))success
            failure:(void(^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
